//
//  CMDBRescodeType.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

public enum CMDBRescodeType: Int {
    
    case Success = 100 //所有的成功后返回100
    
    case Failure = 101 // 没有业务返回码的失败都返回
    
    case Mutex = 102
    
    case UnKnown
    init(string: String) {
        
        switch string {
        case "100":
            self = .Success
        case "101":
            self = .Failure
        case "102":
            self = .Mutex
        default:
            self = .UnKnown
        }
        
    }
}
